#define _CRT_SECURE_NO_WARNINGS
#include"stack.h"


void test01()
{
	ST st;
	StackInit(&st);
	StackPush(&st, 1);
	StackPush(&st, 2);
	StackPush(&st, 3);
	StackPush(&st, 4);
	StackPush(&st, 4);
	//StackPop(&st);
	//StackPop(&st);
	//StackPop(&st);
	//StackPop(&st);
	//StackPop(&st);
	//while (st.top != 0)
	//{
	//	STDatatype num=StackTop(&st);
	//	printf("%d ", num);
	//	StackPop(&st);
	//}
	int size = StackSize(&st);
	printf("size:%d\n", size);

	StackDestroy(&st);
}


int main()
{
	test01();

	return 0;
}